package robot;

import java.awt.*;

/**
 * @description:
 * @author: 张德长 dechang.zhang@ucarinc.com
 * @date: 11:07:37 2018/11/12
 * @version:2.0
 */
public class MultiDesktop {
    public static void main(String[] arg) {
        GraphicsEnvironment ge = GraphicsEnvironment
                .getLocalGraphicsEnvironment();
        GraphicsDevice[] gds = ge.getScreenDevices();
        for (GraphicsDevice gd : gds) {
            int w = gd.getDisplayMode().getWidth();
            int h = gd.getDisplayMode().getHeight();
            //System.out.println(w + "::" + h);
            GraphicsConfiguration gc = gd.getDefaultConfiguration();
            //System.out.println(gc.getBounds().x);
            // System.out.println(gc.getBounds().y);
        }

    }


}
